package chapter3;

class Y extends X {
    protected int yMask = 0xff00;
    
    public Y(){
        fullMask |= yMask;
    }
    
    public int mask(int orig){
        //Exercise 3.3, set yMask here
        yMask = 0xff00;
        return (orig & yMask);
    }
    
    public int ok(String[] str){
        return 0;
    }
    
    public static void main(String[] args){
        Y y = new Y();
        System.out.printf("%#x%n",y.mask(0x1234));
    }

}
